package sugarbind_input

class Database {

	String database_Name
	String database_Note
	
    static constraints = {
		database_Name(blank:false)
		database_Name(unique:true)
    }
	
	static hasMany = [bindings:Binding]
	
	static mapping = {
//		id column: 'database_id'
		id generator: 'sequence', params: [sequence: 'database_id_seq']
	}
	
	public String toString(){
		database_Name
	}
}
